package top.wangjiu.reactive.rpc.spring.client;

import lombok.Builder;
import lombok.Data;
import top.wangjiu.reactive.rpc.config.ServiceConfig;
import top.wangjiu.reactive.rpc.generater.RequestIdGenerater;
import top.wangjiu.reactive.rpc.loadbalance.LoadBalance;

/**
 * @ClassName AnntionServiceConfig
 * @Description TODO
 * @Author wangjiu
 * @Date 2021/8/16 4:34 下午
 */
@Builder
public class AnnotationServiceConfig implements ServiceConfig {

    private LoadBalance loadBalance;

    private int version;

    private long timeout;

    private RequestIdGenerater requestIdGenerater;

    @Override
    public LoadBalance getLoadBalance() {
        return loadBalance;
    }

    @Override
    public int getVersion() {
        return version;
    }

    @Override
    public long getTimeout() {
        return timeout;
    }

    @Override
    public RequestIdGenerater getRequestIdGenerater() {
        return requestIdGenerater;
    }
}
